package models

import "gorm.io/gorm"

type Goods struct {
	gorm.Model
	GoodsName  string
	GoodsPrice float64
	GoodsType  string
}

func (g *Goods) GetGoodsById(id int64) error {
	return DB.Where("id=?", id).Limit(1).Find(&g).Error
}
